Skip to main content

GetBucketLogging

Description

the GetBucketLogging is used to view the bucket access log configuration.

Request Method

POST

Request Path

/apsara/route/OneRouter/GetBucketLogging

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
BucketLoggingStatusBODYcontainerNoNo sample value for this parameter.container for accessing log status information.
TargetPrefixBODYstringNoNo sample value for this parameter.specifies the final saved access log file prefix.
regionIdBODYstringYesNo sample value for this parameter.region id
TargetBucketBODYstringNoNo sample value for this parameter.specifies the bucket on which access logs are stored.
versionBODYstringNo2016-01-01version of api
LoggingEnabledBODYcontainerNoNo sample value for this parameter.container for accessing log information. This element is needed when it is turned on and not when it is turned off.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}